#!/usr/bin/env bash
git status -s
read -p "提交说明：" M
if [ ! -n "$M" ] ;then
    M="修复已知问题"
fi

git pull origin master && git add . && git commit -m "${M}" && git pull origin master && git push origin master